package com.woniuxy.oldmanapi.mapper;

import com.woniuxy.oldmanapi.entity.Changecare;
import com.woniuxy.oldmanapi.yvo.ChangeCareVo;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface ChangecareMapper extends Mapper<Changecare> {
    List<ChangeCareVo> selectAllListYsw(String name);

    @Delete("delete from changecare where older_id = #{id}")
    void deleteByOlderId(Integer olderId);
}